package tralala.server.data;
import java.util.List;
import javax.jdo.annotations.Join;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Usuario {

	@PrimaryKey
	private String nick;
	private String nombre;
	private String apellidos;
	private String email;
	private String password;
	@Join
	private List<Reproduccion> reprs;
	
	public Usuario(String nick, String nombre, String apellidos, String email,
			String password) {
		super();
		this.nick = nick;
		this.nombre = nombre;
		this.apellidos = apellidos;
		this.email = email;
		this.password = password;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public String getApellidos() {
		return apellidos;
	}

	public void setApellidos(String apellidos) {
		this.apellidos = apellidos;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public List<Reproduccion> getReproducciones() {
		return reprs;
	}
	public void setFriends(List<Reproduccion> reprs) {
		this.reprs = reprs;
	}
	
}
	
	